//
//  ZXZOrderCell.m
//  sheyingzu
//
//  Created by tyu on 29.5.24.
//

#import "ZXZOrderCell.h"

@interface ZXZOrderCell ()

@property(weak,nonatomic)UIView *ContentV;

@end
@implementation ZXZOrderCell

- (instancetype)initWithFrame:(CGRect)frame{

    if (self = [super initWithFrame:frame]) {

        
        [self SetupUI];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    [self SetupFrame];
}

- (void)SetupUI
{
    UIView *ContentV = [[UIView alloc]init];
    self.ContentV = ContentV;
    [self addSubview:ContentV];
//    ContentV.backgroundColor = [UIColor clearColor];

    UILabel *TitleLab = [[UILabel alloc]init];
    [self.ContentV addSubview:TitleLab];
    self.TitleLab = TitleLab;
    TitleLab.font = [UIFont systemFontOfSize:15];
    TitleLab.textColor = [UIColor blackColor];
    TitleLab.text = @"";
    
    
    UILabel *leftTitle = [UIView lableWithText:@"" andColor:[UIColor blackColor] andFont:16];
    [ContentV addSubview:leftTitle];
    self.TitleLab = leftTitle;
    
    UILabel *titleOne = [UIView lableWithText:@"" andColor:[UIColor blackColor] andFont:16];
    [ContentV addSubview:titleOne];
    self.subLab = titleOne;
    titleOne.textAlignment = NSTextAlignmentRight;
    
    
    
    UILabel *subNumLab = [UIView lableWithText:@"小计" andColor:[UIColor blackColor] andFont:14];
    [ContentV addSubview:subNumLab];
    self.subNumLab = subNumLab;
    subNumLab.textAlignment = NSTextAlignmentRight;
    subNumLab.hidden = YES;

    
}
- (void)SetupFrame
{
    self.ContentV.frame = self.bounds;

    self.TitleLab.frame = CGRectMake(10, 10, 150, 20);

    self.subLab.frame = CGRectMake(10, 10,self.frame.size.width-30, 20);
    self.subNumLab.frame = CGRectMake(10, 10,self.frame.size.width-100, 20);

    
    
}


@end
